package com.lxj.student_security.service;

import com.lxj.student_security.common.CommonResult;
import com.lxj.student_security.entity.LoginParam;
import com.lxj.student_security.entity.Permission;
import com.lxj.student_security.entity.User;
import com.lxj.student_security.entity.vo.UserRoleRelation;

import java.util.List;

public interface UserService {
    List<Permission> getPermissionsByUserId(Integer id);

    String login(LoginParam loginParam);

    CommonResult findAll(User user);

    CommonResult add(User user);

    CommonResult delete(Integer[] id);

    CommonResult findRole(Integer id);

    CommonResult addRole(UserRoleRelation urr);

    CommonResult deleteRole(UserRoleRelation urr);
}
